package com.xgk.boot.module.core.dal.entity.order;

import com.baomidou.mybatisplus.annotation.*;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 服务商返回费用记录表
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Data
@TableName("order_service_fee")
public class OrderServiceFeeDO extends BaseDO {

    @TableId(value = "osf_id", type = IdType.ASSIGN_ID)
    private Long osfId;

    /**
     * 订单编号
     */
    @TableField(value = "order_code")
    private String orderCode;

    /**
     * 费用代码
     */
    @TableField(value = "fee_code")
    private String feeCode;

    /**
     * 费用金额
     */
    @TableField(value = "fee_value")
    private BigDecimal feeValue;

    /**
     * 服务商费用
     */
    @TableField(value = "service_amount")
    private BigDecimal serviceAmount;

    /**
     * 发生时间
     */
    @TableField(value = "ol_add_time", fill = FieldFill.INSERT)
    private Date olAddTime;
    @Override
    public String toString() {
        return "OrderServiceFee{" +
        ", osfId = " + osfId +
        ", orderCode = " + orderCode +
        ", feeCode = " + feeCode +
        ", feeValue = " + feeValue +
        ", serviceAmount = " + serviceAmount +
        ", olAddTime = " + olAddTime +
        "}";
    }
}
